'use strict';

const BaseController = require('./base');

class ItemController extends BaseController {
  constructor(ctx) {
    super(ctx, 'item');
  }
  getPageInclude() {
    return [{
      model: this.ctx.model.ItemCategory,
      as: 'category',
      attributes: ['id', 'category_name']
    }]
  }
  
  getListInclude() {
    return [{
      model: this.ctx.model.ItemCategory,
      as: 'category',
      attributes: ['id', 'category_name']
    }]
  }
  
  getDetailInclude() {
    return [{
      model: this.ctx.model.ItemCategory,
      as: 'category',
      attributes: ['id', 'category_name']
    }]
  }
}

module.exports = ItemController;
